﻿<UserControl x:Class="SBPweb.Messenger.ClientApplication.Controls.PopupDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="200" Height="200">
    <Grid x:Name="LayoutRoot" Background="White">
        <StackPanel Width="200" Height="200" VerticalAlignment="Top">
            <Rectangle Fill="Blue" Width="100" Height="100" />
            <Button x:Name="showButton" Content="Click Me" />
        </StackPanel>
        <Popup x:Name="fakeDialog">
            <Grid x:Name="theBack" Background="#80000000">
                <Grid.RowDefinitions>
                    <RowDefinition />
                    <RowDefinition Height="Auto" />
                    <RowDefinition />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <Border BorderBrush="Black" 
            BorderThickness="2" 
            Background="WhiteSmoke" 
            CornerRadius="15" 
            Grid.Column="1" 
            Grid.Row="1">
                    <StackPanel Margin="8">
                        <ContentControl x:Name="cContent" />
                        <!--TextBlock TextWrapping="Wrap">
            This is just some sample text. It doesn't 
            matter what it says as long as it is long 
            enough to actually wrap
                        </TextBlock-->
                        <Button x:Name="closeButton" 
                Content="Close"
                                Click="closeButton_Click"
                HorizontalAlignment="Center" VerticalAlignment="Bottom" Width="60" />
                    </StackPanel>
                </Border>
            </Grid>
        </Popup>
    </Grid>
</UserControl>
